
/**
 * @desc 公司表
 */
 import { Column, DataType, Model, PrimaryKey, Table } from 'sequelize-typescript';

 @Table({
   modelName: 'company',
 })

 export class Company extends Model<Company> {
 
    @PrimaryKey
    @Column({
      type: DataType.NUMBER,
      comment: '公司ID',
    })
    id: number;

    @PrimaryKey
    @Column({
      type: DataType.STRING,
      comment: '公司名称',
    })
    name: string;
}